<template>
  <div
    class="login"
    v-loading="loading"
    element-loading-text="拼命加载中"
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.2)"
  >
    <div class="titlelogo">
      <img src="@/assets/img/lo.png" alt="" />
    </div>
    <div class="loginInfo">
      <div class="title">工程项目生产质量数字化管控云平台(辽宁)</div>
      <div class="right_left">
        <el-form
          :model="loginForm"
          :rules="loginFormRules"
          ref="loginFormRef"
          label-width="0px"
          class="login_form"
        >
          <el-form-item prop="username">
            <el-input v-model="loginForm.username" placeholder="账号">
              <i slot="suffix" class="el-input__icon el-icon-user"></i>
            </el-input>
          </el-form-item>

          <el-form-item prop="password">
            <el-input
              type="password"
              v-model="loginForm.password"
              placeholder="请输入长度为6-12位密码"
            >
              <i slot="suffix" class="el-input__icon el-icon-lock"></i>
            </el-input>
          </el-form-item>

          <el-form-item class="btnsGo">
            <el-button type="primary" @click="logins" @keyup.enter="keyDown(e)"
              >登录</el-button
            >
          </el-form-item>
        </el-form>
      </div>
      <div class="loginCopy">
        <div class="copy">版权所有：四川云检科技发展有限公司</div>
      </div>
    </div>
  </div>
</template>
<script>
import { login } from "@/api/request.js";
export default {
  data() {
    return {
      ctx: null,
      myCanvas: null,
      balls: [],
      centerY: null,
      speedX: null,
      speedY: null,
      color: null,
      loginForm: {
        // username: "system",
        // password: "yjxa369",
        username: "",
        password: "",
      },
      newpwd: "",
      loginFormRules: {
        username: [
          { required: true, message: "请输入账号", trigger: "blur" },
          // {  message: "长度在3 到 8 个字符", trigger: "blur" },
        ],
        password: [
          {
            required: true,
            message: "请输入长度为6-12位密码",
            trigger: "blur",
          },
          {
            min: 6,
            max: 12,
            message: "长度在 6 到 12 个字符",
            trigger: "blur",
          },
        ],
      },
      loading: false,
      userInfo: {},
      leftNameData: [
        // 材料数据字典
        {
          rank: 1,
          title: "材料数据字典",
          img: "iconfont icon-jurassic_engineer-info",
          name: "materialDataManage",
          width: "24px",
          children: [
            {
              title: "材料种类管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/categoryManagement",
              path2: "/categoryManagementText",
              name: "categoryManagement",
              name2: "categoryManagementText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料规格管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/specificationManagement",
              path2: "/specificationManagementText",
              name: "specificationManagement",
              name2: "specificationManagementText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料检测类别",
              lever: 1, //1只有查看    2带编辑页
              path: "/testCategory",
              path2: "",
              name: "testCategory",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料生产厂商",
              lever: 2, //1只有查看    2带编辑页
              path: "/manufacturer",
              path2: "/manufacturerText",
              name: "manufacturer",
              name2: "manufacturerText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料供应商",
              lever: 2, //1只有查看    2带编辑页
              path: "/supplier",
              path2: "/supplierText",
              name: "supplier",
              name2: "supplierText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料编号规则",
              lever: 2, //1只有查看    2带编辑页
              path: "/numberingRules",
              path2: "/numberingRulesText",
              name: "numberingRules",
              name2: "numberingRulesText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料存放位置",
              lever: 2, //1只有查看    2带编辑页
              path: "/materialLocation",
              path2: "/materialLocationText",
              name: "materialLocation",
              name2: "materialLocationText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "试件存放位置",
              lever: 2, //1只有查看    2带编辑页
              path: "/testPieceLocation",
              path2: "/testPieceLocationText",
              name: "testPieceLocation",
              name2: "testPieceLocationText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "试验闭合流程",
              lever: 1, //1只有查看    2带编辑页
              path: "/experimentalClosureProcess",
              path2: "",
              name: "experimentalClosureProcess",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "软基超标参数设置",
              lever: 1, //1只有查看    2带编辑页
              path: "/softFoundationSeted",
              path2: "",
              name: "softFoundationSeted",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "回弹超标参数设置",
              lever: 1, //1只有查看    2带编辑页
              path: "/htOverSeting",
              path2: "",
              name: "htOverSeting",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 原材料管理
        {
          rank: 1,
          title: "原材料管理",
          img: "iconfont icon-jurassic_engineer-info",
          name: "rawMaterialManage",
          width: "24px",
          children: [
            {
              title: "材料进场台帐",
              lever: 2, //1只有查看    2带编辑页
              path: "/entryLedger",
              path2: "/entryLedgerText",
              name: "entryLedger",
              name2: "entryLedgerText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料进场台帐",
              lever: 2, //1只有查看    2带编辑页
              path: "/inspectionLedger",
              path2: "",
              name: "inspectionLedger",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 见证取样管理
        {
          rank: 1,
          title: "见证取样管理",
          img: "iconfont icon-jurassic_engineer-info",
          name: "sampleManage",
          width: "24px",
          children: [
            {
              title: "现场见证取样",
              lever: 2, //1只有查看 2带编辑页
              path: "/fieldSampling",
              path2: "fieldSamplingText",
              name: "fieldSampling",
              name2: "fieldSamplingText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "样品室内收样",
              lever: 2, //1只有查看 2带编辑页
              path: "/collection",
              path2: "collectionText",
              name: "collection",
              name2: "collectionText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "材料检测委托单",
              lever: 2, //1只有查看 2带编辑页
              path: "/sampleMaterial",
              path2: "sampleMaterialText",
              name: "sampleMaterial",
              name2: "sampleMaterialText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 试验检测管理
        {
          rank: 1,
          title: "试验检测管理",
          img: "iconfont icon-jurassic_engineer-info",
          name: "testDetectionManage",
          width: "24px",
          children: [
            {
              title: "备案信息管理",
              lever: 1, //1只有查看    2带编辑页
              path: "/filing",
              path2: "/",
              name: "filing",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "样品登记台帐",
              lever: 1, //1只有查看    2带编辑页
              path: "/samplesLedger",
              path2: "",
              name: "samplesLedger",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "检测报告台帐",
              lever: 1, //1只有查看    2带编辑页
              path: "/testingLedger",
              path2: "",
              name: "testingLedger",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "不合格报告管理",
              lever: 1, //1只有查看    2带编辑页
              path: "/unqualifiedReport",
              path2: "",
              name: "unqualifiedReport",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            // {
            //   title: "不合格报告管理",
            //   lever: 2, //1只有查看    2带编辑页
            //   path: "/unqualifiedReport",
            //   path2: "unqualifiedReportText",
            //   name: "unqualifiedReport",
            //   name2: "unqualifiedReportText",
            //   img: "iconfont icon-shengchanguanli1",
            //   children: [],
            //   rank: 2,
            //   width: "24px",
            // },
            {
              title: "材料报验单管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/InspectionForm",
              path2: "InspectionFormText",
              name: "InspectionForm",
              name2: "InspectionFormText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 外委检测管理
        {
          rank: 1,
          title: "外委检测管理",
          img: "iconfont icon-jurassic_engineer-info",
          name: "outsourcedManage",
          width: "24px",
          children: [
            {
              title: "外委样品管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/outsourcedSample",
              path2: "/outsourcedSampleText",
              name: "outsourcedSample",
              name2: "outsourcedSampleText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "外委报告管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/qualificationReport",
              path2: "qualificationReportText",
              name: "qualificationReport",
              name2: "qualificationReportText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "不合格报告管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/outUnQualifiedReports",
              path2: "outUnQualifiedReportsText",
              name: "outUnQualifiedReports",
              name2: "outUnQualifiedReportsText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 智能养护管理
        {
          rank: 1,
          title: "智能养护管理",
          img: "iconfont icon-jurassic_engineer-info",
          name: "intelligentMaintenanceManage",
          width: "24px",
          children: [
            {
              title: "试件入库管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/sampleStorage",
              path2: "",
              name: "sampleStorage",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "试件出库管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/sampleOutbound",
              path2: "",
              name: "sampleOutbound",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "温湿度在线监控",
              lever: 2, //1只有查看    2带编辑页
              path: "/temperature&humidity",
              path2: "",
              name: "temperature&humidity",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 试验机联网
        {
          rank: 1,
          title: "试验机联网监管",
          img: "iconfont icon-jurassic_engineer-info",
          name: "machineNetworkManage",
          width: "24px",
          children: [
            {
              lever: 1,
              path: "/sampleTestedManage",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "待试验样品",
              name: "sampleTestedManage",
              width: "24px",
            },

            {
              title: "试验数据监控",
              lever: 0,
              rank: 2,
              name: "testDataMonitorManage",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "压力机数据监控",
                  path: "/pressDataMonitor",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "pressDataMonitor",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "万能机数据监控",
                  path: "/zigzagDataMonitor",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "zigzagDataMonitor",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "抗折抗压机数据监控",
                  path: "/compressivePressDataMonitor",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "compressivePressDataMonitor",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "沥青设备监控",
                  lever: 0,
                  img: "iconfont icon-cailiaozhengli",

                  name: "asphaltEquipmentMonitor",
                  rank: 3,
                  width: "24px",
                  children: [
                    {
                      title: "针入度",
                      path: "/penetrationMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "penetrationMonitor",
                      rank: 4,
                      width: "24px",
                    },

                    {
                      title: "软化点",
                      path: "/softenPointMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "softenPointMonitor",
                      rank: 3,
                      width: "24px",
                    },
                    {
                      title: "延度",
                      path: "/ductilityMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "ductilityMonitor",
                      rank: 3,
                      width: "24px",
                    },
                  ],
                },
                {
                  title: "沥青混合料监控",
                  lever: 0,
                  img: "iconfont icon-cailiaozhengli",

                  name: "asphaltMixtureMonitor",
                  rank: 3,
                  width: "24px",
                  children: [
                    {
                      title: "稳定度",
                      path: "/stabilityMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "stabilityMonitor",
                      rank: 4,
                      width: "24px",
                    },

                    {
                      title: "沥青含量",
                      path: "/asphaltContentMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "asphaltContentMonitor",
                      rank: 3,
                      width: "24px",
                    },
                    {
                      title: "车辙",
                      path: "/rutMonitor",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "rutMonitor",
                      rank: 3,
                      width: "24px",
                    },
                  ],
                },
              ],
            },
            {
              title: "试验数据处理",
              lever: 0,
              rank: 2,
              name: "testDataProcessManage",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "压力机数据处理",
                  path: "/pressDataProcess",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "pressDataProcess",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "万能机数据处理",
                  path: "/zigzagDataProcess",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "zigzagDataProcess",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "抗折抗压机数据处理",
                  path: "/compressivePressDataProcess",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "compressivePressDataProcess",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "沥青设备处理",
                  lever: 0,
                  img: "iconfont icon-cailiaozhengli",

                  name: "asphaltEquipmentProcess",
                  rank: 3,
                  width: "24px",
                  children: [
                    {
                      title: "针入度",
                      path: "/penetrationProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "penetrationProcess",
                      rank: 4,
                      width: "24px",
                    },

                    {
                      title: "软化点",
                      path: "/softenPointProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "softenPointProcess",
                      rank: 3,
                      width: "24px",
                    },
                    {
                      title: "延度",
                      path: "/ductilityProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "ductilityProcess",
                      rank: 3,
                      width: "24px",
                    },
                  ],
                },
                {
                  title: "沥青混合料处理",
                  lever: 0,
                  img: "iconfont icon-cailiaozhengli",

                  name: "asphaltMixtureProcess",
                  rank: 3,
                  width: "24px",
                  children: [
                    {
                      title: "稳定度",
                      path: "/stabilityProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "stabilityProcess",
                      rank: 4,
                      width: "24px",
                    },

                    {
                      title: "沥青含量",
                      path: "/asphaltContentProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "asphaltContentProcess",
                      rank: 3,
                      width: "24px",
                    },
                    {
                      title: "车辙",
                      path: "/rutProcess",
                      path2: "",
                      img: "iconfont icon-cailiaozhengli",
                      children: [],
                      name: "rutProcess",
                      rank: 3,
                      width: "24px",
                    },
                  ],
                },
              ],
            },
            {
              title: "数据统计分析",
              lever: 0,
              rank: 2,
              name: "analysisDataManage",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "混凝土质量趋势",
                  path: "/concreteQuality",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "concreteQuality",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "钢筋质量趋势",
                  path: "/rebarQuality",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "rebarQuality",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "水泥质量趋势",
                  path: "/cementQuality",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "cementQuality",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "砂浆质量趋势",
                  path: "/mortarQuality",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "mortarQuality",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "净浆质量趋势",
                  path: "/pasteQuality",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "pasteQuality",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        // 回弹强度检测
        {
          rank: 1,
          title: "回弹强度检测",
          img: "iconfont icon-jurassic_engineer-info",
          name: "reboundStrengthManage",
          width: "24px",
          children: [
            {
              title: "回弹数据字典",
              lever: 0,
              rank: 2,
              name: "reboundDataDictionary",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "检测判定依据",
                  path: "/detectionCriteria",
                  path2: "detectionCriteriaText",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "detectionCriteria",
                  name2: "detectionCriteriaText",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "回弹检测设备",
                  path: "/reboundDetectionEquipment",
                  path2: "reboundDetectionEquipmentText",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "reboundDetectionEquipment",
                  name2: "reboundDetectionEquipmentText",
                  rank: 3,
                  width: "24px",
                },
                // {
                //   title: "报告编制规则",
                //   path: "/reportPreparationRules",
                //   path2: "reportPreparationRulesText",
                //   img: "iconfont icon-cailiaozhengli",
                //   children: [],
                //   name: "reportPreparationRules",
                //   name2: "reportPreparationRulesText",
                //   rank: 3,
                //   width: "24px",
                // },
              ],
            },
            {
              title: "回弹任务单",
              lever: 2, //1只有查看    2带编辑页
              path: "/reboundEntrust",
              path2: "reboundEntrustText",
              name: "reboundEntrust",
              name2: "reboundEntrustText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "回弹检测任务",
              lever: 2, //1只有查看    2带编辑页
              path: "/reboundDetectionTask",
              path2: "reboundDetectionTaskText",
              name: "reboundDetectionTask",
              name2: "reboundDetectionTaskText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "回弹检测数据",
              lever: 2, //1只有查看    2带编辑页
              path: "/reboundDetectionData",
              path2: "reboundDetectionDataText",
              name: "reboundDetectionData",
              name2: "reboundDetectionDataText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "回弹记录审批",
              lever: 2, //1只有查看    2带编辑页
              path: "/reboundRecordApproval",
              path2: "reboundRecordApprovalText",
              name: "reboundRecordApproval",
              name2: "reboundRecordApprovalText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "不合格数据管理",
              lever: 1, //1只有查看    2带编辑页
              path: "/reboundUnqualifiedData",
              name: "reboundUnqualifiedData",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 钢保厚度检测
        {
          rank: 1,
          title: "钢保厚度检测",
          img: "iconfont icon-jurassic_engineer-info",
          name: "rebarThicknessManage",
          width: "24px",
          children: [
            {
              title: "钢保数据字典",
              lever: 0,
              rank: 2,
              name: "rebarDataDictionary",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "检测判定依据",
                  path: "/rebarDetectionCriteria",
                  path2: "rebarDetectionCriteriaText",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "rebarDetectionCriteria",
                  name2: "rebarDetectionCriteriaText",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "钢保检测设备",
                  path: "/rebarDetectionEquipment",
                  path2: "rebarDetectionEquipmentText",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "rebarDetectionEquipment",
                  name2: "rebarDetectionEquipmentText",
                  rank: 3,
                  width: "24px",
                },
                // {
                //   title: "报告编制规则",
                //   path: "/rebarPreparationRules",
                //   path2: "rebarPreparationRulesText",
                //   img: "iconfont icon-cailiaozhengli",
                //   children: [],
                //   name: "rebarPreparationRules",
                //   name2: "rebarPreparationRulesText",
                //   rank: 3,
                //   width: "24px",
                // },
              ],
            },
            {
              title: "钢保任务单",
              lever: 2, //1只有查看    2带编辑页
              path: "/rebarEntrust",
              path2: "rebarEntrustText",
              name: "rebarEntrust",
              name2: "rebarEntrustText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "钢保检测任务",
              lever: 2, //1只有查看    2带编辑页
              path: "/rebarDetectionTask",
              path2: "rebarDetectionTaskText",
              name: "rebarDetectionTask",
              name2: "rebarDetectionTaskText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "钢保检测数据",
              lever: 2, //1只有查看    2带编辑页
              path: "/rebarDetectionData",
              path2: "rebarDetectionDataText",
              name: "rebarDetectionData",
              name2: "rebarDetectionDataText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "厚度记录审批",
              lever: 2, //1只有查看    2带编辑页
              path: "/rebarRecordApproval",
              path2: "rebarRecordApprovalText",
              name: "rebarRecordApproval",
              name2: "rebarRecordApprovalText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "不合格数据管理",
              lever: 1, //1只有查看    2带编辑页
              path: "/rebarUnqualifiedData",
              path2: "",
              name: "rebarUnqualifiedData",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
          ],
        },
        // 桩基

        {
          rank: 1,
          title: "基桩工程检测管理",
          // img: "iconfont icon-jurassic_engineer-info",
          img: "iconfont icon-yewu",
          name: "pieManage",
          width: "24px",

          children: [
            {
              title: "桩基检测数据",
              lever: 2,
              rank: 2,
              name: "detectionTask",
              path: "/detectionTask",
              path2: "/detectionTaskText",
              name2: "detectionTaskText",
              img: "iconfont icon-tongji",
              children: [],
              width: "24px",
            },
            {
              title: "桩基检测数据",
              lever: 1,
              name: "pilesDetectedData",
              path: "/pilesDetectedData",
              path2: "",
              img: "iconfont icon-tongji",
              children: [],
              rank: 2,
            },
            {
              title: "成孔检测数据",
              lever: 1,
              name: "holeDetectedData",
              path: "/holeDetectedData",
              path2: "",
              img: "iconfont icon-tongji",
              children: [],
              rank: 2,
            },
            {
              title: "检测设备管理",
              lever: 1,
              name: "testEquipmentManage",
              path: "/testEquipmentManage",
              path2: "",
              img: "iconfont icon-tongji",
              children: [],
              rank: 2,
            },
          ],
        },
        // 桩基
        //系统业务数据字典
        // {
        //   rank: 1,
        //   title: "系统业务数据字典",
        //   img: "iconfont icon-yewu",
        //   name: "currencyManage",
        //   width: "24px",
        //   children: [
        //     {
        //       title: "标段回弹工程划分",
        //       lever: 2,
        //       name: "ProjectPage",
        //       path: "/ProjectPage",
        //       path2: "/ProjectPageText",
        //       name2: "ProjectPageText",
        //       // img: "iconfont icon-gongcheng",
        //       img: "iconfont icon-jiancexiangmu",
        //       children: [],
        //       rank: 2,
        //     },
        //     {
        //       title: "试验检测依据管理",
        //       lever: 2,
        //       name: "experiment",
        //       path: "/experiment",
        //       path2: "/experimentText",
        //       name2: "experimentText",
        //       img: "iconfont icon-jiancexiangmu",
        //       children: [],
        //       rank: 2,
        //     },
        //     {
        //       title: "样品种类在线管理",
        //       lever: 1,
        //       name: "sample",
        //       path: "/sample",
        //       path2: "",
        //       // img: "iconfont icon-yangpinguanli",
        //       img: "iconfont icon-jiancexiangmu",
        //       children: [],
        //       rank: 2,
        //     },
        //     {
        //       title: "检测仪器设备管理",
        //       lever: 2,
        //       name: "instrument",
        //       path: "/instrument",
        //       path2: "/instrumentText",
        //       name2: "instrumentText",
        //       // img: "iconfont icon-shebeijiance",
        //       img: "iconfont icon-jiancexiangmu",
        //       children: [],
        //       rank: 2,
        //     },
        //   ],
        // },
        // 工程结构现场检测
        // {
        //   rank: 1,
        //   title: "工程结构现场检测",
        //   img: "iconfont icon-jichuguanli",
        //   name: "PCManage",
        //   width: "24px",
        //   children: [
        //     {
        //       lever: 0,
        //       rank: 1,
        //       title: "混凝土回弹检测",
        //       img: "iconfont icon-yewu",
        //       name: "betonManage",
        //       width: "24px",
        //       children: [
        //         {
        //           title: "回弹检测结果管控-1",
        //           lever: 2,
        //           rank: 2,
        //           name: "Control-1",
        //           path: "/Control-1",
        //           path2: "/Control-1Text",
        //           name2: "Control-1Text",
        //           // img: "iconfont icon-shengchengbaogao",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           width: "24px",
        //         },
        //         {
        //           title: "回弹检测结果管控-2",
        //           lever: 2,
        //           rank: 2,
        //           name: "Control-2",
        //           path: "/Control-2",
        //           path2: "/Control-2Text",
        //           name2: "Control-2Text",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           width: "24px",
        //         },
        //         {
        //           title: "回弹检测结果管控-3",
        //           lever: 2,
        //           rank: 2,
        //           name: "Control-3",
        //           path: "/Control-3",
        //           path2: "/Control-3Text",
        //           name2: "Control-3Text",
        //           // img: "iconfont icon-jieguo",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           width: "24px",
        //         },
        //       ],
        //     },
        //     {
        //       lever: 0,
        //       rank: 1,
        //       title: "钢筋保护层检测",
        //       // img: "iconfont icon-baogaolishichaxun",
        //       img: "iconfont icon-yewu",
        //       name: "coverManage",
        //       width: "24px",
        //       children: [
        //         {
        //           title: "钢筋保护层检测-1",
        //           lever: 2,
        //           rank: 2,
        //           name: "Steel-1",
        //           path: "/Steel-1",
        //           path2: "/Steel-1Text",
        //           name2: "Steel-1Text",
        //           // img: "iconfont icon-zhibiaojieguo",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //         },
        //         {
        //           title: "钢筋保护层检测-2",
        //           lever: 2,
        //           rank: 2,
        //           name: "Steel-2",
        //           path: "/Steel-2",
        //           path2: "/Steel-2Text",
        //           name2: "Steel-2Text",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //         },
        //       ],
        //     },
        //     {
        //       lever: 0,
        //       rank: 2,
        //       title: "基桩工程检测管理",
        //       // img: "iconfont icon-jurassic_engineer-info",
        //       img: "iconfont icon-yewu",
        //       name: "pieManage",
        //       width: "24px",

        //       children: [
        //         {
        //           title: "桩基检测数据",
        //           lever: 2,
        //           rank: 0,
        //           name: "detectionTask",
        //           path: "/detectionTask",
        //           path2: "/detectionTaskText",
        //           name2: "detectionTaskText",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           width: "24px",
        //         },
        //         {
        //           title: "桩基检测数据",
        //           lever: 1,
        //           name: "pilesDetectedData",
        //           path: "/pilesDetectedData",
        //           path2: "",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           rank: 2,
        //         },
        //         {
        //           title: "成孔检测数据",
        //           lever: 1,
        //           name: "holeDetectedData",
        //           path: "/holeDetectedData",
        //           path2: "",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           rank: 2,
        //         },
        //         {
        //           title: "检测设备管理",
        //           lever: 1,
        //           name: "testEquipmentManage",
        //           path: "/testEquipmentManage",
        //           path2: "",
        //           img: "iconfont icon-tongji",
        //           children: [],
        //           rank: 2,
        //         },
        //         // {
        //         //   title: "基桩工程信息",
        //         //   lever: 2,
        //         //   rank: 0,
        //         //   name: "Engineering",
        //         //   path: "/engineering",
        //         //   path2: "/engineeringText",
        //         //   name2: "EngineeringText",
        //         //   img: "iconfont icon-tongji",
        //         //   children: [],
        //         //   width: "24px",
        //         // },
        //         // {
        //         //   title: "基桩检测信息",
        //         //   lever: 2,
        //         //   rank: 0,
        //         //   name: "Monitoring",
        //         //   path: "/Monitoring",
        //         //   path2: "/MonitoringText",
        //         //   name2: "MonitoringText",
        //         //   img: "iconfont icon-tongji",
        //         //   children: [],
        //         //   width: "24px",
        //         // },
        //         // {
        //         //   title: "基桩检测统计",
        //         //   lever: 0,
        //         //   rank: 2,
        //         //   name: "jisManage",
        //         //   img: "iconfont icon-tongji",
        //         //   width: "24px",
        //         //   children: [
        //         //     {
        //         //       title: "按建设项目统计",
        //         //       path: "/building",
        //         //       path2: "",
        //         //       img: "iconfont icon-tongji1",
        //         //       children: [],
        //         //       name: "building",
        //         //       rank: 3,
        //         //       lever: 3,
        //         //       width: "24px",
        //         //     },
        //         //     {
        //         //       title: "按施工标段统计",
        //         //       path: "/section",
        //         //       path2: "",
        //         //       img: "iconfont icon-tongji1",
        //         //       children: [],
        //         //       rank: 3,
        //         //       lever: 3,
        //         //       width: "24px",

        //         //       name: "section",
        //         //     },
        //         //     {
        //         //       title: "按工程项目统计",
        //         //       path: "/project",
        //         //       path2: "",
        //         //       img: "iconfont icon-tongji1",
        //         //       children: [],
        //         //       rank: 3,
        //         //       lever: 3,
        //         //       width: "24px",

        //         //       name: "project",
        //         //     },
        //         //   ],
        //         // },
        //       ],
        //     },
        //   ],
        // },

        // 砼拌合生产质量管控
        {
          rank: 1,
          title: "砼拌合生产质量管控",
          img: "iconfont icon-jurassic_engineer-info",
          name: "HntManage",
          width: "24px",
          children: [
            {
              title: "理论配合比",
              lever: 2, //1只有查看    2带编辑页
              path: "/theoreticalMix",
              path2: "/theoreticalMixText",
              name: "theoreticalMix",
              name2: "theoreticalMixText",
              // img: "iconfont icon-jianzhucailiao",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "施工配合比",
              lever: 2, //1只有查看    2带编辑页
              path: "/proportionMix",
              path2: "/proportionMixText",
              name: "proportionMix",
              name2: "proportionMixText",
              // img: "iconfont icon-jianzhucailiao",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "浇筑令管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/pouringOrder",
              path2: "/pouringOrderText",
              name: "pouringOrder",
              name2: "pouringOrderText",
              // img: "iconfont icon-jianzhucailiao",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "砼拌合生产配合比",
              lever: 2, //1只有查看    2带编辑页
              path: "/HntMixProportion",
              path2: "/HntMixProportionText",
              name: "HntMixProportion",
              name2: "HntMixProportionText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              path: "/supervisionList",
              path2: "",
              // img: "iconfont icon-wj-clzj",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "拌合生产数据信息",
              name: "supervisionList",
              width: "24px",

              // children: [
              //   {
              //     title: "实时监控",
              //     path: "/supervisionList",
              //     path2: "",
              //     img: "iconfont icon-gongchengxiangmuxinxi",
              //     children: [],
              //     name: "supervisionList",
              //     rank: 3,
              //   }
              // ],
            },
            {
              lever: 1,
              path2: "",
              // img: "iconfont icon-banhezhanyuanchengjiankongxitong",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "拌合生产超标监控",
              path: "/closure",
              name: "closure",
              width: "24px",
              // children: [
              //   {
              //     title: "超标记录",
              //     path: "/closure",
              //     path2: "",
              //     img: "iconfont icon-gongchengxiangmuxinxi",
              //     children: [],
              //     name: "closure",
              //     rank: 3,
              //   }
              // ],
            },
            // {
            //   title: "场站实测坍落度",
            //   lever: 2, //1只有查看    2带编辑页
            //   path: "/StationCollapse",
            //   path2: "/StationCollapseText",
            //   name: "StationCollapse",
            //   name2: "StationCollapseText",
            //   // img: "iconfont icon-shengchanguanli",
            //   img: "iconfont icon-shengchanguanli1",
            //   children: [],
            //   rank: 2,
            //   width: "24px",
            // },
            // {
            //   title: "现场坍落度检测",
            //   lever: 2, //1只有查看    2带编辑页
            //   path: "/siteCollapse",
            //   path2: "/siteCollapseText",
            //   name: "siteCollapse",
            //   name2: "siteCollapseText",
            //   // img: "iconfont icon-jichuguanli",
            //   img: "iconfont icon-shengchanguanli1",
            //   children: [],
            //   rank: 2,
            //   width: "24px",
            // },
            {
              title: "拌合设备检定管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/EquipmentCalibration",
              path2: "/EquipmentCalibrationText",
              name: "EquipmentCalibration",
              name2: "EquipmentCalibrationText",
              // img: "iconfont icon-jianzhucailiao",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "拌合材料生产统计",
              lever: 0,
              rank: 2,
              name: "bhManage",
              // img: "iconfont icon-tongji",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "拌合材料用量统计",
                  // title: '材料用量',
                  path: "/deliverability",
                  path2: "",
                  // img: "iconfont icon-gongchengxiangmuxinxi",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "deliverability",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "用料偏差趋势分析",
                  path: "/deviationTrend",
                  path2: "",
                  // img: "iconfont icon-yuancailiaofenxi",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "deviationTrend",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "阶段生产材料用量",
                  path: "/Consumption",
                  path2: "",
                  // img: "iconfont icon-xinjishuxincailiaofenxi",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "Consumption",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "单日生产材料用量",
                  path: "/timePeriod",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "timePeriod",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            {
              title: "拌合生产方量统计",
              lever: 0,
              rank: 2,
              name: "stManage",
              // img: "iconfont icon-baobiaofenxi",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "阶段生产方量统计",
                  // title: '材料用量',
                  path: "/output",
                  path2: "",
                  // img: "iconfont icon-concrete",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "output",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "生产超标情况统计",
                  path: "/exceedance",
                  path2: "",
                  // img: "iconfont icon-yubanhunningtu",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "exceedance",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "拌合材料消耗统计",
                  path: "/material",
                  path2: "",
                  // img: "iconfont icon-yuancailiaofenxi",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "material",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            {
              title: "生产任务完成统计",
              lever: 0,
              rank: 2,
              name: "pcManage",
              // img: "iconfont icon-tongchanliangtongji",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "任务单生产动态统计",
                  // title: '材料用量',
                  path: "/productionAmount",
                  path2: "",
                  // img: "iconfont icon-jianzhucailiao",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "productionAmount",
                  rank: 3,
                  width: "24px",
                },
                //  {
                //   title: "用量偏差",
                //   path: "/dosageDeviation",
                //   path2: "",
                //   img: "iconfont icon-cailiaokufang",
                //   children: [],
                //   name: "dosageDeviation",
                //   rank: 3,
                //   width: '24px',
                // },
                {
                  title: "任务单用料情况统计",
                  path: "/materialConsumption",
                  path2: "",
                  // img: "iconfont icon-guanliancailiao",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "materialConsumption",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            {
              title: "砼拌合机在线监控",
              lever: 0,
              rank: 2,
              name: "controlManage",
              // img: "iconfont icon-19shishijiankong",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "砼拌和机联网状态",
                  // title: '材料用量',
                  path: "/networkStatus",
                  path2: "",
                  // img: "iconfont icon-hulianwanghuiju",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "networkStatus",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            {
              title: "砼拌合站参数设置",
              lever: 0,
              rank: 2,
              name: "TbhxtManage",
              // img: "iconfont icon-shezhi1",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "项目部拌合站信息",
                  name: "mixingPlant",
                  path: "/mixingPlant",
                  path2: "",
                  // img: "iconfont icon-xitongshezhi1",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "材料超标参数设置",
                  name: "alarmParameterSetting",
                  path: "/alarmParameterSetting",
                  path2: "",
                  // img: "iconfont icon-shuju",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警通知人员对象",
                  name: "warningObject",
                  path: "/warningObject",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  rank: 2,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",

                  name: "warningInformation",
                  path: "/warningInformation",
                  path2: "",
                  // img: "iconfont icon-yujingzhibiaoguanli",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            // //测试页面---- 可以删除
            //  {
            //   title: "弹框表单-楠",
            //   lever: 2,
            //   rank: 2,
            //   name: "aaa",
            //   path: "/aaa",
            //   img: "iconfont icon-yewutongjijieguoguize",
            //   children: [],
            // },  {
            //   title: "弹框表单-娜",
            //   lever: 2,
            //   rank: 2,
            //   name: "bbb",
            //   path: "/bbb",
            //   img: "iconfont icon-yewutongjijieguoguize",
            //   children: [],
            // },
            //   //测试页面---- 可以删除
          ],
        },
        // 水稳
        {
          rank: 1,
          title: "水稳拌合生产质量管控",
          img: "iconfont icon-shuixitong",
          name: "WaterManage",
          width: "24px",
          children: [
            {
              lever: 1,
              path: "/instantly",
              path2: "",
              // img: "iconfont icon-jiankong1",
              img: "iconfont icon-jianzhucailiao",
              children: [],
              rank: 2,
              title: "动态监控",
              name: "instantly",
              width: "24px",
            },
            {
              lever: 1,
              path: "/superRecord",
              path2: "",
              // img: "iconfont icon-banhezhanyuanchengjiankongxitong",
              img: "iconfont icon-jianzhucailiao",
              children: [],
              rank: 2,
              title: "水稳超标生产拌合监控",
              name: "superRecord",
              width: "24px",
            },
            {
              title: "拌合设备检定管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/Equipment",
              path2: "/EquipmentText",
              name: "Equipment",
              name2: "EquipmentText",
              img: "iconfont icon-jianzhucailiao",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              title: "数据分析",
              lever: 0,
              rank: 2,
              name: "analyse",
              // img: "iconfont icon-shujufenxixianxing",
              img: "iconfont icon-jianzhucailiao",
              width: "24px",
              children: [
                {
                  title: "产能分析",
                  path: "/waterProduce",
                  path2: "",
                  // img: "iconfont icon-zhongguohangtiantubiaoheji-weizhuanlunkuo-",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "waterProduce",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "材料用量走势图",
                  path: "/waterConsumption",
                  path2: "",
                  // img: "iconfont icon-qushifenxi1",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "waterConsumption",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "材料百分比走势",
                  path: "/percentage",
                  path2: "",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "percentage",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "材料偏差走势图",
                  path: "/WaterDeviation",
                  path2: "",
                  // img: "iconfont icon-dibudaohanglan-",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "WaterDeviation",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "产量统计",
                  // title: '材料用量',
                  path: "/waterOutput",
                  path2: "",
                  // img: "iconfont icon-shengchanliangtongji",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "waterOutput",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "原材料消耗",
                  path: "/waterMaterial",
                  path2: "",
                  // img: "iconfont icon-yuancailiaoyanghujilu",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "waterMaterial",
                  rank: 3,
                  width: "24px",
                },
              ],
            },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "swHxtManage",
              // img: "iconfont icon-xitongshezhi6",
              img: "iconfont icon-jianzhucailiao",
              width: "24px",
              children: [
                {
                  title: "拌合站设置",
                  name: "swMixingPlant",
                  path: "/swMixingPlant",
                  path2: "",
                  // img: "iconfont icon-shezhi",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "材料超标参数设置",
                  name: "swAlarmParameterSetting",
                  path: "/swAlarmParameterSetting",
                  path2: "",
                  // img: "iconfont icon-shuju",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警通知人员对象",
                  name: "sWwarningObject",
                  path: "/sWwarningObject",
                  path2: "",
                  // img: "iconfont icon-ziyuan",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  rank: 2,
                  width: "24px",
                },
                {
                  title: "预警短信模板",
                  path: "/sWwarningInformation",
                  path2: "",
                  // img: "iconfont icon-yujing",
                  img: "iconfont icon-shujufenxi2",
                  children: [],
                  name: "sWwarningInformation",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        // 沥青
        {
          rank: 1,
          // 云检沥青拌和站生产与动态监控系统
          title: "沥青拌合生产质量管控",
          img: "iconfont icon-G-banhezhan",
          name: "pitchManage",
          width: "24px",
          path: "/real_timeMonitoring",
          path2: "",
          children: [
            // {
            //   title: "实时监控",
            //   path: "/real_timeMonitoring",
            //   path2: "",
            //   lever: 1,
            //   img: "iconfont icon-shishijiankong1",
            //   children: [],
            //   name: "real_timeMonitoring",
            //   rank: 2,
            //   width: "24px",
            // },
            {
              // title: "配合比管理",

              title: "标段配方管理",
              path: "/mixProportion",
              path2: "",
              lever: 1,
              img: "iconfont icon-shengchanguanli1",
              children: [],
              name: "mixProportion",
              rank: 2,
              width: "24px",
            },
            {
              title: "拌合生产数据信息",
              path: "/real_timeData",
              path2: "",
              // img: "iconfont icon-shishishuju",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              lever: 1,
              name: "real_timeData",
              rank: 2,
              width: "24px",
            },
            {
              title: "误差监控",
              path: "/errorMonitoring",
              path2: "",
              lever: 1,
              // img: "iconfont icon-jiankongqu",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              name: "errorMonitoring",
              rank: 2,
              width: "24px",
            },
            {
              title: "拌合设备检定管理",
              lever: 2, //1只有查看    2带编辑页
              path: "/lqEquipment",
              path2: "/lqEquipmentText",
              name: "lqEquipment",
              name2: "lqEquipmentText",
              // img: "iconfont icon-jianzhucailiao",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },

            // {
            //   title: "基础设置",
            //   lever: 0,
            //   rank: 2,
            //   name: "bsManage",
            //   img: "iconfont icon-icon-jichushezhi",
            //   width: "24px",
            //   children: [{

            //     title: '沥青混合料配合比',
            //     path: "/mixProportion",
            //     path2: "",
            //     img: "iconfont icon-shengchanguanli1",
            //     children: [],
            //     name: "mixProportion",
            //     rank: 3,
            //     width: "24px",
            //   }, ],
            // },
            // {
            //   title: "动态监控",
            //   lever: 0,
            //   rank: 2,
            //   name: "dyMonitorManage",
            //   img: "iconfont icon-jiankong",
            //   width: "24px",
            //   children: [
            //     {
            //     title: "实时数据",
            //     path: "/real_timeData",
            //     path2: "",
            //     img: "iconfont icon-shishishuju",
            //     children: [],
            //     name: "real_timeData",
            //     rank: 3,
            //     width: "24px",
            //   },
            //   {
            //     title: "误差监控",
            //     path: "/errorMonitoring",
            //     path2: "",
            //     img: "iconfont icon-jiankongqu",
            //     children: [],
            //     name: "errorMonitoring",
            //     rank: 3,
            //     width: "24px",
            //   },
            //   ],
            // },
            {
              title: "数据分析",
              lever: 0,
              rank: 2,
              name: "dataAnalysisManage",
              // img: "iconfont icon-shujufenxitianchong",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "误差分析",
                  path: "/errorAnalysis",
                  path2: "",
                  // img: "iconfont icon-yujingfenxi",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "errorAnalysis",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "生产时间段分析",
                  path: "/productionPeriod",
                  path2: "",
                  // img: "iconfont icon-shijian1",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "productionPeriod",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "材料用量分析",
                  path: "/materConsumption",
                  path2: "",
                  // img: "iconfont icon-liefenxi",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "materConsumption",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "日统计",
                  path: "/dayStatistics",
                  path2: "",
                  // img: "iconfont icon-shishishuju",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "dayStatistics",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "生产统计",
                  path: "/productionStatistics",
                  path2: "",
                  // img: "iconfont icon-a-zu110",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "productionStatistics",
                  rank: 3,
                  width: "24px",
                },
                // {
                //   title: "生产信息",
                //   path: "/ProductionInformation",
                //   path2: "",
                //   img: "iconfont icon-yuancailiao-02",
                //   children: [],
                //   name: "ProductionInformation",
                //   rank: 3,
                //   width: "24px",
                // },
                {
                  title: "报警数据处理",
                  path: "/alarmData",
                  path2: "",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "alarmData",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
            // {
            //   title: "智能监测",
            //   lever: 0,
            //   rank: 2,
            //   name: "intelligentManage",
            //   img: "iconfont icon-shengchanguanli",
            //   width: "24px",
            //   children: [
            //     {
            //       title: "设备状态",
            //       path: "/equipmentStatus",
            //       path2: "",
            //       img: "iconfont icon-jianzhucailiao",
            //       children: [],
            //       name: "equipmentStatus",
            //       rank: 3,
            //       width: "24px",
            //     },
            //   ],
            // },
            // {
            //   title: "统计分析",
            //   lever: 0,
            //   rank: 2,
            //   name: "stAnalysisManage",
            //   img: "iconfont icon-a-zu110",
            //   width: "24px",
            //   children: [
            //     {
            //       title: "原材统计",
            //       path: "/rawMaterial",
            //       path2: "",
            //       img: "iconfont icon-yuancailiao-02",
            //       children: [],
            //       name: "rawMaterial",
            //       rank: 3,
            //       width: "24px",
            //     },
            //     {
            //       title: "产量统计",
            //       path: "/outputStatistics",
            //       path2: "",
            //       img: "iconfont icon-tongjibaobiao2",
            //       children: [],
            //       name: "outputStatistics",
            //       rank: 3,
            //       width: "24px",
            //     },
            //     {
            //       title: "月统计",
            //       path: "/monthStatistics",
            //       path2: "",
            //       img: "iconfont icon-yuetongji",
            //       children: [],
            //       name: "monthStatistics",
            //       rank: 3,
            //       width: "24px",
            //     },
            //   ],
            // },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "lqxtManage",
              // img: "iconfont icon-xitongshezhi-xuanzhong",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "拌合站设置",
                  name: "lqMixingPlant",
                  path: "/lqMixingPlant",
                  path2: "",
                  // img: "iconfont icon-navicon-jcsz",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "报警参数设置",
                  // title: '材料用量',
                  path: "/lqAlarmParameterSetting",
                  path2: "",
                  // img: "iconfont icon-yujingxinxi",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "lqAlarmParameterSetting",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警通知人员对象",
                  name: "lqwarningObject",
                  path: "/lqwarningObject",
                  path2: "",
                  // img: "iconfont icon-ziyuan",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  rank: 2,
                  width: "24px",
                },
                {
                  title: "预警短信模板",
                  // title: '材料用量',
                  path: "/lqWarningInformation",
                  path2: "",
                  // img: "iconfont icon-yujing",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "lqWarningInformation",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },

        //张拉
        {
          rank: 1,
          title: "智能张拉质量管控",
          img: "iconfont icon-xitong",
          name: "TensionManage",
          width: "24px",
          children: [
            {
              title: "张拉任务单下发",
              lever: 2, //1只有查看    2带编辑页
              path: "/Tension_task_list",
              path2: "/Tension_task_listText",
              name: "Tension_task_list",
              name2: "Tension_task_listText",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "实时数据查询",
              path: "/TensionRealTime",
              name: "TensionRealTime",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "超标数据查询",
              path: "/TensionExceedData",
              name: "TensionExceedData",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "张拉质量趋势",
              path: "/TensionExceedHandle",
              name: "TensionExceedHandle",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "TensionYjxtManage",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "梁场信息设置",
                  name: "TensionBeamYard",
                  path: "/TensionBeamYard",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警信息设置",
                  path: "/TensionEarlyWarning",
                  name: "TensionEarlyWarning",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警人员设置",
                  path: "/TensionWarningPerson",
                  name: "TensionWarningPerson",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",
                  name: "TensionAlertTemplate",
                  path: "/TensionAlertTemplate",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        //张拉
        //压浆
        {
          rank: 1,
          title: "智能压浆质量管控",
          img: "iconfont icon-shishishujubukedianji",
          name: "GroutManage",
          width: "24px",
          children: [
            {
              title: "压浆任务单下发",
              lever: 2, //1只有查看    2带编辑页
              path: "/Grout_task_list",
              path2: "/Grout_task_listText",
              name: "Grout_task_list",
              name2: "Grout_task_listText",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "实时数据查询",
              path: "/GroutRealTime",
              name: "GroutRealTime",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "超标数据查询",
              path: "/GroutExceedData",
              name: "GroutExceedData",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "压浆质量趋势",
              path: "/GroutExceedHandle",
              name: "GroutExceedHandle",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "GroutYjxtManage",
              img: "iconfont icon-renyuanyidongyujing",
              // img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "梁场信息设置",
                  name: "GroutBeamYard",
                  path: "/GroutBeamYard",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警信息设置",
                  path: "/GroutEarlyWarning",
                  name: "GroutEarlyWarning",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警人员设置",
                  path: "/GroutWarningPerson",
                  name: "GroutWarningPerson",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",
                  name: "GroutAlertTemplate",
                  path: "/GroutAlertTemplate",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        //压浆

        //张拉--瑞仓
        {
          rank: 1,
          title: "智能张拉质量管控——瑞苍",
          img: "iconfont icon-xitong",
          name: "TensionManage_Ruicang",
          width: "24px",
          children: [
            {
              title: "张拉任务单下发",
              lever: 2, //1只有查看    2带编辑页
              path: "/Tension_task_list_Ruicang",
              path2: "/Tension_task_listText_Ruicang",
              name: "Tension_task_list_Ruicang",
              name2: "Tension_task_listText_Ruicang",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "实时数据查询",
              path: "/TensionRealTime_Ruicang",
              name: "TensionRealTime_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "超标数据查询",
              path: "/TensionExceedData_Ruicang",
              name: "TensionExceedData_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "张拉质量趋势",
              path: "/TensionExceedHandle_Ruicang",
              name: "TensionExceedHandle_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              width: "24px",
            },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "TensionYjxtManage_Ruicang",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "梁场信息设置",
                  name: "TensionBeamYard_Ruicang",
                  path: "/TensionBeamYard_Ruicang",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警信息设置",
                  path: "/TensionEarlyWarning_Ruicang",
                  name: "TensionEarlyWarning_Ruicang",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警人员设置",
                  path: "/TensionWarningPerson_Ruicang",
                  name: "TensionWarningPerson_Ruicang",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",
                  name: "TensionAlertTemplate_Ruicang",
                  path: "/TensionAlertTemplate_Ruicang",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        //张拉--瑞仓

        //压浆--瑞仓
        {
          rank: 1,
          title: "智能压浆质量管控——瑞苍",
          img: "iconfont icon-shishishujubukedianji",
          name: "GroutManage_Ruicang",
          width: "24px",
          children: [
            {
              title: "压浆任务单下发",
              lever: 2, //1只有查看    2带编辑页
              path: "/Grout_task_list_Ruicang",
              path2: "/Grout_task_listText_Ruicang",
              name: "Grout_task_list_Ruicang",
              name2: "Grout_task_listText_Ruicang",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "实时数据查询",
              path: "/GroutRealTime_Ruicang",
              name: "GroutRealTime_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "超标数据查询",
              path: "/GroutExceedData_Ruicang",
              name: "GroutExceedData_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },
            {
              lever: 1,
              title: "压浆质量趋势",
              path: "/GroutExceedHandle_Ruicang",
              name: "GroutExceedHandle_Ruicang",
              path2: "",
              name2: "",
              img: "iconfont icon-renyuanyidongyujing",
              children: [],
              rank: 2,
              width: "24px",
            },

            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "GroutYjxtManage_Ruicang",
              img: "iconfont icon-renyuanyidongyujing",
              // img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "梁场信息设置",
                  name: "GroutBeamYard_Ruicang",
                  path: "/GroutBeamYard_Ruicang",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警信息设置",
                  path: "/GroutEarlyWarning_Ruicang",
                  name: "GroutEarlyWarning_Ruicang",
                  path2: "",
                  // img: "iconfont icon-shujuyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警人员设置",
                  path: "/GroutWarningPerson_Ruicang",
                  name: "GroutWarningPerson_Ruicang",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",
                  name: "GroutAlertTemplate_Ruicang",
                  path: "/GroutAlertTemplate_Ruicang",
                  path2: "",
                  // img: "iconfont icon-renyuanyidongyujing",
                  img: "iconfont icon-renyuanyidongyujing",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        //压浆--瑞仓

        // 软基
        {
          rank: 1,
          title: "软基施工监管",
          img: "iconfont icon-G-banhezhan",
          name: "softFoundationManage",
          width: "24px",
          children: [
            {
              title: "成桩数据管理",
              path: "/pileDataManage",
              path2: "",
              lever: 1,
              img: "iconfont icon-shengchanguanli1",
              children: [],
              name: "pileDataManage",
              rank: 2,
              width: "24px",
            },
            {
              title: "管控超标监控",
              path: "/overLimitMonitor",
              path2: "",
              // img: "iconfont icon-shishishuju",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              lever: 1,
              name: "overLimitMonitor",
              rank: 2,
              width: "24px",
            },

            {
              title: "软基施工设置",
              lever: 0,
              rank: 2,
              name: "softFoundationSet",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "软基设备参数信息",
                  name: "equipmentParameterInformation",
                  path: "/equipmentParameterInformation",
                  path2: "",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警短信模板管理",
                  path: "/softWarningInformation",
                  path2: "",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  name: "softWarningInformation",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "预警通知人员对象",
                  name: "softwarningObject",
                  path: "/softwarningObject",
                  path2: "",
                  img: "iconfont icon-tongjibaobiao2",
                  children: [],
                  rank: 2,
                  width: "24px",
                },
              ],
            },
          ],
        },
        // 软基
        // 环境监测
        {
          rank: 1,
          title: "环境监测",
          img: "iconfont icon-jurassic_engineer-info",
          name: "environmentalMonitorManage",
          width: "24px",
          children: [
            {
              lever: 1,
              path: "/testingRecord",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "监测记录",
              name: "testingRecord",
              width: "24px",
            },
            {
              lever: 1,
              path: "/equipmentEnvironment",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "设备管理",
              name: "equipmentEnvironment",
              width: "24px",
            },
          ],
        },
        // 环境监测
        // 安全监测
        {
          rank: 1,
          title: "环境监测",
          img: "iconfont icon-jurassic_engineer-info",
          name: "safetyMonitorManage",
          width: "24px",
          children: [
            {
              lever: 1,
              path: "/gantryCrane",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "龙门吊监测",
              name: "gantryCrane",
              width: "24px",
            },
            {
              lever: 1,
              path: "/launchGantry",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "架桥机监测",
              name: "launchGantry",
              width: "24px",
            },
            {
              lever: 1,
              path: "/towerCrane",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "塔吊监测",
              name: "towerCrane",
              width: "24px",
            },
            {
              lever: 1,
              path: "/hangingBasket",
              path2: "",
              img: "iconfont icon-shengchanguanli1",
              children: [],
              rank: 2,
              title: "挂篮监测",
              name: "hangingBasket",
              width: "24px",
            },
            {
              title: "系统设置",
              lever: 0,
              rank: 2,
              name: "settingSafeyManage",
              img: "iconfont icon-shengchanguanli1",
              width: "24px",
              children: [
                {
                  title: "设备管理",
                  path: "/equipmentSafey",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "equipmentSafey",
                  rank: 3,
                  width: "24px",
                },

                {
                  title: "预警设置（龙门吊）",
                  path: "/warnSetSafey",
                  path2: "",
                  img: "iconfont icon-cailiaozhengli",
                  children: [],
                  name: "warnSetSafey",
                  rank: 3,
                  width: "24px",
                },
              ],
            },
          ],
        },
        // 安全监测
        // //现场生产质量管控
        // {
        //   rank: 1,
        //   title: "现场生产质量管控",
        //   img: "iconfont icon-gongcheng",
        //   name: "stationQuality",
        //   width: "24px",
        //   children: [
        //     {
        //       title: "班组首件工程管理",
        //       lever: 2,
        //       name: "groupClass",
        //       path: "/groupClass",
        //       path2: "/groupClassText",
        //       name2: "groupClassText",
        //       img: "iconfont icon-fenxi",
        //       children: [],
        //       rank: 2,
        //     },
        //     {
        //       title: "工序报验质量管理",
        //       lever: 0,
        //       rank: 2,
        //       name: "QualityWork",
        //       img: "iconfont icon-fenxi",
        //       width: "24px",
        //       children: [
        //         {
        //           title: "WBS工程划分管理",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "stationWorkList",
        //           path: "/stationWorkList",
        //           rank: 3,
        //           width: "24px",
        //         },
        //         {
        //           title: "完工工序报验管理",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "ProcessInspection",
        //           path: "/ProcessInspection",
        //           name2: "ProcessInspectionText",
        //           path2: "/ProcessInspectionText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //       ],
        //     },
        //     {
        //       title: "质量责任网格管理",
        //       lever: 0,
        //       rank: 2,
        //       name: "QualityResponsibility",
        //       img: "iconfont icon-fenxi",
        //       width: "24px",
        //       children: [
        //         {
        //           title: "场站/实体质量网格",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "stationQualityList",
        //           path: "/stationQualityList",
        //           path2: "/stationQualityListText",
        //           name2: "stationQualityListText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //         {
        //           title: "场站/实体开工管理",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "startLook",
        //           path: "/startLook",
        //           path2: "/startText",
        //           name2: "startText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //         {
        //           title: "质量管理责任网格",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "responsibility",
        //           path: "/responsibility",
        //           path2: "/responsibilityText",
        //           name2: "responsibilityText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //         {
        //           title: "巡查问题管理",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "patrol",
        //           path: "/patrol",
        //           rank: 3,
        //           width: "24px",
        //         },
        //       ],
        //     },
        //     {
        //       title: "第三方检查信息管理",
        //       lever: 2,
        //       name: "ThreeCheck",
        //       path: "/ThreeCheck",
        //       path2: "/ThreeCheckText",
        //       name2: "ThreeCheckText",
        //       img: "iconfont icon-fenxi",
        //       children: [],
        //       rank: 2,
        //     },
        //     {
        //       title: "工作指令动态管理",
        //       lever: 0,
        //       rank: 2,
        //       name: "workOrder",
        //       img: "iconfont icon-fenxi",
        //       width: "24px",
        //       children: [
        //         {
        //           title: "工作指令在线下发",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "distribute",
        //           path: "/distribute",
        //           path2: "/distributeText",
        //           name2: "distributeText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //         {
        //           title: "工作指令执行报告",
        //           img: "iconfont icon-zuzhijigou-jianying",
        //           children: [],
        //           name: "execute",
        //           path: "/execute",
        //           path2: "/executeText",
        //           name2: "executeText",
        //           rank: 3,
        //           width: "24px",
        //         },
        //       ],
        //     },
        //   ],
        // },

        // 系统管理
        {
          rank: 1,
          title: "系统管理",
          img: "iconfont icon-xitongguanli",
          name: "SysManage",
          width: "24px",
          children: [
            {
              title: "组织机构",
              rank: 2,
              img: "iconfont icon-zuzhijigou-jianying",
              name: "BaseManage",
              lever: 0,
              width: "24px",
              children: [
                {
                  title: "机构管理",
                  path: "/mechanism",
                  path2: "",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  name: "CompanyManage",
                  rank: 3,
                  width: "24px",
                },
                {
                  title: "部门管理",
                  path: "/department",
                  path2: "",
                  // img: "iconfont icon-untitled85",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  rank: 3,
                  name: "DepartmentManage",
                  width: "24px",
                },
                {
                  title: "岗位管理",
                  path: "/postManagement",
                  path2: "",
                  // img: "iconfont icon-icon",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  rank: 3,
                  name: "PostManage",
                  width: "24px",
                },
                {
                  title: "角色管理",
                  path: "/roleManagement",
                  path2: "",
                  // img: "iconfont icon-jurassic_role",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  rank: 3,
                  name: "RoleManage",
                  width: "24px",
                },
                {
                  title: "用户管理",
                  path: "/user",
                  path2: "",
                  // img: "iconfont icon-Management",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  rank: 3,
                  name: "UserManage",
                  width: "24px",
                },
              ],
            },
            {
              title: "数据字典",
              // img: "iconfont icon-shujuzidian-jianying",
              img: "iconfont icon-zuzhijigou-jianying",
              path: "/dictionaryPage",
              path2: "",
              name: "dictionaryPage",
              lever: 1,
              rank: 2,
              children: [],
              width: "24px",
            },
            {
              title: "敏捷开发",
              rank: 2,
              // img: "iconfont icon-zuzhijigou-jianying",
              img: "iconfont icon-zuzhijigou-jianying",
              name: "minjManage",
              lever: 0,
              width: "24px",
              children: [
                {
                  title: "代码生成器",
                  path: "/codeGenerator",
                  path2: "",
                  // img: "iconfont icon-jigouguanli1",
                  img: "iconfont icon-jigouguanli1",
                  children: [],
                  name: "codeGenerator",
                  rank: 3,
                  width: "24px",
                },
                // ,
                // {
                //   title: "列表模板",
                //   path: "/table",
                //   path2: "",
                //   img: "iconfont icon-untitled85",
                //   children: [],
                //   rank: 3,
                //   name: "tableManage",
                //   width: "24px",
                // },
                // {
                //   title: "下拉框",
                //   path: "/select",
                //   path2: "",
                //   img: "iconfont icon-icon",
                //   children: [],
                //   rank: 3,
                //   name: "PostManage",
                //   width: "24px",
                // },
                // {
                //   title: "树状图",
                //   path: "/tree",
                //   path2: "",
                //   img: "iconfont icon-jurassic_role",
                //   children: [],
                //   rank: 3,
                //   name: "RoleManage",
                //   width: "24px",
                // },
                // {
                //   title: "上传文件",
                //   path: "/upload",
                //   path2: "",
                //   img: "iconfont icon-Management",
                //   children: [],
                //   rank: 3,
                //   name: "UserManage",
                //   width: "24px",
                // },
              ],
            },
            {
              title: "系统功能",
              // img: "iconfont icon-xitonggongneng",
              img: "iconfont icon-zuzhijigou-jianying",
              path: "/systemData",
              path2: "",
              name: "systemData",
              lever: 1,
              rank: 2,
              children: [],
              width: "24px",
            },
          ],
        },
      ],
    };
  },
  mounted() {
    // 绑定监听事件
    window.addEventListener("keydown", this.keyDown);
    // this.getTu()
    // this.canvas();
  },
  destroyed() {
    // 销毁事件
    window.removeEventListener("keydown", this.keyDown, false);
  },

  methods: {
    // 重置按钮
    reset: function () {
      this.$refs.loginFormRef.resetFields();
    },
    keyDown(e) {
      // 回车则执行登录方法 enter键的ASCII是13
      if (e.keyCode == 13 || e.keyCode == 100) {
        this.logins(); // 定义的登录方法
      }
    },

    logins() {
      sessionStorage.clear();

      // 登录消息预验证
      this.userInfo = JSON.parse(sessionStorage.getItem("yjSmart-userInfo"));
      this.$refs.loginFormRef.validate((valid) => {
        // if (!valid) {
        //   this.$message.error("请检查密码和账户名");
        //   return;
        // }
        this.loading = true;
        this.newpwd = this.$md5(this.loginForm.password.toLowerCase()); //密码加密
        login({
          username: this.loginForm.username,
          password: this.newpwd,
        })
          .then((res) => {
            if (res.errcode == 0) {
              this.$store.commit("increase", JSON.stringify(this.leftNameData));
              // console.log(res);
              sessionStorage.setItem("yjSmart-token", res.data.session); // 将token本地存储到回话中
              //本地需要存的信息
              window.sessionStorage.setItem(
                "yjSmart-CompanyNature",
                JSON.stringify(res.data.CompanyNature)
              );

              window.sessionStorage.setItem(
                "yjSmart-ModuleList",
                JSON.stringify(res.data.ModuleList)
              );
              window.sessionStorage.setItem(
                "yjSmart-userInfo",
                JSON.stringify(res.data.userInfo)
              );
              this.$store.commit("userInfo", JSON.stringify(res.data.userInfo));

              window.sessionStorage.setItem(
                "yjSmart-surfaceList", //表面计算
                JSON.stringify(res.data.surfaceList)
              );
              window.sessionStorage.setItem(
                "yjSmart-detectionList", //角度计算
                JSON.stringify(res.data.detectionList)
              );
              window.sessionStorage.setItem(
                "yjSmart-concretetypeList", //泵送混凝土
                JSON.stringify(res.data.concretetypeList)
              );
              window.sessionStorage.setItem(
                "yjSmart-concretetypeunList", ////非泵送混凝土
                JSON.stringify(res.data.concretetypeunList)
              );

              var activePath;
              if (
                sessionStorage.getItem("yjSmart-keyPath") &&
                sessionStorage.getItem("yjSmart-keyPath") != "null" &&
                sessionStorage.getItem("yjSmart-keyPath") != "" &&
                this.userInfo.userId == res.data.userInfo.userId
              ) {
                activePath = sessionStorage.getItem("yjSmart-keyPath");
              } else {
                activePath = "/HomePage";
              }

              this.$message.success("登录成功");
              this.$router.push(activePath);
            } else {
              this.$message.error(res.data.loginMsg);
              this.loading = false;
              return false;
            }
          })
          .catch((err) => {
            this.$message.error(err.msg);
            this.loading = false;
            return false;
          });
        return valid;
      });
    },
  },
};
</script>
<style lang="less" scoped>
.login {
  width: 100%;
  height: 100%;

  background: url("../assets/img/bg_img.jpg") no-repeat;
  background-size: 100% 100%;
  // background-image: -webkit-radial-gradient(ellipse farthest-corner at center top,
  //     #083c90 0%,
  //     #071c65 100%);
  // background-image: radial-gradient(ellipse farthest-corner at center top,
  //     #083c90 0%,
  //     #071c65 100%);
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  padding-right: 3rem;
  .titlelogo {
    // display: flex;
    position: absolute;
    top: 0.64rem;
    left: 0.64rem;
    width: 2rem;
    height: 0.5rem;
    display: flex;
    .img {
      width: 100%;
      height: 100%;
    }
  }
  .loginInfo {
    width: 5rem;
    height: 5.5rem;
    background: #233174;
    display: flex;
    flex-direction: column;
    padding: 0.64rem 0.5rem 0.53rem 0.5rem;
    .title {
      font-size: 0.2rem;
      font-weight: 700;
      text-align: center;
      color: #ffffff;
      margin-bottom: 0.64rem;
    }
  }
  .loginCopy {
    display: flex;
    justify-content: center;
    font-size: 0.12rem;
    color: #fff;
    margin-top: 0.54rem;
    margin-bottom: 0.1rem;
  }
}
// min-width: 1920px;

// min-width: 835px !important;

// user-select: none;
//   .loginBox {
//     width: 42%;
//     height: 77.77%;
//     position: absolute;
//     // padding-top: 2%;
//     padding-top: 0.6rem;
//     min-width: 340px !important;
//     // border: 1px solid red;
//     display: flex;
//     flex-direction: column;
//     justify-content: space-between;

//     .loginImage {
//       display: flex;
//       justify-content: center;
//       // margin-bottom: 3%;
//       margin-bottom: 0.4rem;

//       .img {
//         width: 1.4rem;
//         // height: 0.8rem;
//       }
//     }

//     .loginInfo {
//       display: flex;
//       flex-direction: column;
//       justify-content: flex-start;
//       align-items: center;
//       flex: 1;
//       // border: 1px solid green;

//       .title {
//         // font-size: 40px;
//         font-size: 0.4rem;
//         color: #ffffff;
//         letter-spacing: 1px;
//       }
//     }

//   }
// }

// .login_left {
//   flex: 1;
//   display: flex;
//   flex-direction: column;
//   justify-content: center;
//   box-sizing: border-box;
//   padding: 0 0.4rem;
// }

.right_left {
  // flex: 6;
  display: flex;

  justify-content: center;
  align-items: center;
}

.login_form {
  // width: 380px;
  width: 3.8rem;
  min-width: 2rem !important;
}

.login /deep/.el-form-item__content {
  position: relative;
}

.login /deep/.el-input__inner {
  height: 0.4rem !important;
  font-size: 0.16rem;
  padding: 0 0 0 0.45rem !important;
  color: #333862 !important;
}

.login /deep/.el-form-item {
  margin-bottom: 0.24rem;
}

.login /deep/.el-input__suffix {
  left: 2% !important;
  position: absolute;
  width: 0.3rem;
}

.login /deep/.el-input__icon {
  font-size: 0.18rem;
}

.login /deep/.el-form-item__content {
  margin-left: 0px !important;
  text-align: center;
}

.login /deep/.el-button--primary {
  width: 100% !important;
}

.btnsGo /deep/.el-button--primary {
  width: 99% !important;
  height: 0.4rem;
  margin-top: 0.5rem;

  border: none;
  color: #fff;
  background: #007fff;
  font-size: 0.16rem;
}

.btnsGo /deep/.el-button {
  padding: 0;
  margin-left: 0;
  display: flex !important;
  justify-content: center !important;
}

.btnsGo /deep/.el-form-item__content {
  width: 100%;
}
</style>
